package com.atguigu.gmall.list.service;

import com.atguigu.gmall.model.list.SearchParam;
import com.atguigu.gmall.model.list.SearchResponseVo;
import org.springframework.stereotype.Service;

import java.io.IOException;

/**
 * @author tongatong
 * @name SearchService
 * @description
 * @date 2021/9/17
 * @time 21:28
 */
@Service
public interface SearchService {
    /**
     * 上架商品列表
     * @param skuId skuid
     */
    void upperGoods(Long skuId);

    /**
     * 下架商品列表
     * @param skuId skuId
     */
    void lowerGoods(Long skuId);

    /**
     * 更新热点
     * @param skuId skuId
     */
    void incrHotScore(Long skuId);

    /**
     * 搜索列表
     * @param searchParam 从前台获取的searchParam对象
     * @return 后台给前台的信息
     * @throws IOException 会抛出的异常
     */
    SearchResponseVo search(SearchParam searchParam) throws IOException;



}
